import SvgIcon from '@/visual/components/svg-icon/SvgIcon.vue';
import Spinning from '@/visual/components/spinning/Spinning.vue';
import DynamicIcon from '@/visual/components/dynamic-icon/DynamicIcon';
import CustomEmpty from '@/visual/components/custom-empty/CustomEmpty.vue';
import DefDrawerLayout from '@/visual/components/drawer-layout/DefDrawerLayout.vue';
import CustomButton from '../components/custom-button/CustomButton.vue';

import errorSrc from '@/visual/directives/error-src/error-src';
import scrollbar from '@/visual/directives/scrollbar/scrollbar';
import focus from '@/visual/directives/focus/focus';

// 使用的配置
export const useConfig = {
  //第三方组件
  thirdPartyComponents: [],
  //自定义组件
  customComponents: [
    {
      name: 'hv-svg-icon',
      component: SvgIcon,
    },
    {
      name: 'hv-dynamic-icon',
      component: DynamicIcon,
    },
    {
      name: 'hv-spinning',
      component: Spinning,
    },
    {
      name: 'hv-custom-empty',
      component: CustomEmpty,
    },
    {
      name: 'hv-def-drawer-layout',
      component: DefDrawerLayout,
    },
    {
      name: 'hv-custom-button',
      component: CustomButton,
    },
  ],
  //自定义指令
  customDirectives: [
    {
      name: 'hv-error-src',
      directive: errorSrc,
    },
    {
      name: 'hv-scrollbar',
      directive: scrollbar,
    },
    {
      name: 'hv-focus',
      directive: focus,
    },
  ],
};
